package cn.dao;

import cn.domain.Sysuser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.ResponseBody;
import sun.reflect.generics.tree.VoidDescriptor;

import java.util.List;

/**
 * @author Vijay
 * @date 2020/3/30  -13:57
 */
@Repository
public interface CustomerMapper {
      //查询所有用户信息sysuser
      @Select(" SELECT * FROM  sysuser")
      public List<Sysuser> findCustomerList();
      //验证是否登录
      @Select(" SELECT * FROM sysuser WHERE userid=#{userid} AND password=#{password}")
      public Sysuser login(@Param("userid") String userid,@Param("password") String password);
}
